// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-8-13

#ifndef __SETTINGWND_H_CLIENT_MAIN__
#define __SETTINGWND_H_CLIENT_MAIN__

#pragma once
#include <common\ui\wnd.h>
#include <common\ui\button.h>

class CJoySettingPageCtrl;
class CJoyGameSetting;

//##ModelId=44C4B5DC02FD
class CJoySettingWnd :
    public CJoyWnd
{
	DECLARE_DYNAMIC(CJoySettingWnd)
protected:
	//##ModelId=44C4B5DC030F
    CJoyButton* m_btnClose;
	//##ModelId=44C4B5DC0314
    CJoySettingPageCtrl*    m_settingCtrl;

	//##ModelId=44C4B5DC0318
    virtual void CM_CloseClick(CJoyButton*);
	//##ModelId=44C4B5DC031E
    virtual void CM_LoadSkin(CJoyXmlElement* pSkinElem);
public:
	//##ModelId=44C4B5DC0322
    CJoyGameSetting*    m_gameSetting;

	//##ModelId=44C4B5DC032C
    CJoySettingWnd(void);
	//##ModelId=44C4B5DC032E
    virtual ~CJoySettingWnd(void);

	//##ModelId=44C4B5DC0331
    void OnOK();
public:
    DECLARE_MESSAGE_MAP()
	//##ModelId=44C4B5DC033C
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//##ModelId=44C4B5DC033F
    afx_msg LRESULT OnNcHitTest(CPoint point);
	//##ModelId=44C4B5DC034D
    afx_msg void OnDestroy();
};

#endif  // __SETTINGWND_H_CLIENT_MAIN__
